package com.example.iotmanagerment26.domain;

import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class Oprecord {
    int id;
    String name;
    String cmdType;
    String subDevName;
    int unit;
    int act;
    String content;
    Date sendTime;
    String username;

    public Oprecord() {
    }

    public Oprecord(int id, String name, String cmdType, String subDevName, int unit, int act, String content, Date sendTime, String username) {
        this.id = id;
        this.name = name;
        this.cmdType = cmdType;
        this.subDevName = subDevName;
        this.unit = unit;
        this.act = act;
        this.content = content;
        this.sendTime = sendTime;
        this.username = username;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCmdType() {
        return cmdType;
    }

    public void setCmdType(String cmdType) {
        this.cmdType = cmdType;
    }

    public String getSubDevName() {
        return subDevName;
    }

    public void setSubDevName(String subDevName) {
        this.subDevName = subDevName;
    }

    public int getUnit() {
        return unit;
    }

    public void setUnit(int unit) {
        this.unit = unit;
    }

    public int getAct() {
        return act;
    }

    public void setAct(int act) {
        this.act = act;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "Oprecord{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", cmdType='" + cmdType + '\'' +
                ", subDevName='" + subDevName + '\'' +
                ", unit=" + unit +
                ", act=" + act +
                ", content='" + content + '\'' +
                ", sendTime=" + sendTime +
                ", username='" + username + '\'' +
                '}';
    }
}
